<template th:fragment="html(title)">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="">
    <meta name="author" content="">
    <link href="/myblog/favicon.ico" rel="shortcut icon" type="image/x-icon">
    <title th:text="${title}" ></title>
    <!-- Bootstrap core CSS -->
    <link th:href="@{/asserts/css/bootstrap.min.css}" rel="stylesheet">
    <!-- Custom styles for this template -->
    <link th:href="@{/asserts/css/dashboard.css}" rel="stylesheet">
    <script>

        //确实是否要删除
        function checkDeleteLink(){
            var confirmDelete = confirm("确认要删除?");
            if(confirmDelete)
                return true;
            return false;
        }

        //跳转函数
        function jump(page,vue){
            if('first'=== page && !vue.pageInfo.isFirstPage){
                console.log("first");
                vue.list(0);
            }

            else if('pre'=== page &&	vue.pageInfo.hasPreviousPage )
                vue.list(vue.pageInfo.pageNum-1);

            else if('next'=== page && vue.pageInfo.hasNextPage)
                vue.list(vue.pageInfo.pageNum+1);

            else if('last'=== page && !vue.pageInfo.isLastPage)
                vue.list(vue.pageInfo.pages);
        }
        //跳转函数
        function jumpByNumber(start,vue){
            if(start!==vue.pageInfo.pageNum)
                vue.list(start);
        }
    </script>
</template>